<html>
<head>
<script src="fminsearch.js"></script>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
</head>
<body>
<div>
	<h2 style="color:maroon;font-family:verdana"><i>fminsearch</i> </h2>
	<p style="color:navy;font-family:verdana;font-size:small">This page: <a href="http://jmat.googlecode.com/git/fminsearch.html">http://jmat.googlecode.com/git/fminsearch.html</a>, [<a href="https://code.google.com/p/jmat/source/browse/fminsearch.js">source code</a>]<br>
	In the browser's console you could, for example, <button style="color:blue;font-family:verdana" onclick=fminsearch.demo()>try</button>:<br>
	<ol style="color:green;font-family:verdana;font-size:small">
	<li> <span style="color:blue;font-family:verdana;font-size:small">x=[32,37,42,47,52,57,62,67,72,77,82,87,92];y=[0,34,59,77,99,114,121,133,146,159,165,173,170];</span> // some data</li>
	<li> <span style="color:blue;font-family:verdana;font-size:small">fun = function(x,P){return x.map(function(xi){return (1/(1/(P[0]*(xi-P[1]))+1/P[2]))})};</span> // some model</li>
	<li> <span style="color:blue;font-family:verdana;font-size:small">P=fminsearch(fun,[34.6,32,173],x,y);</span> // the regression with some starting values</li> 
	</ol>
	</p>	
</div>	
<div id="plot"></div>
<script>
google.load("visualization", "1", {packages:["corechart"]});
</script>
</body>
</html>